home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / Apple II / Essentials / APW Interfaces / AInclude / E16.Control < prev    next >
Encoding:
Text File  |  1993-06-15  |  6.3 KB  |  198 lines  |  [TEXT/MPS ]

  1. ; File:  E16.Control
  2. ;
  3. ;
  4. ; Copyright Apple Computer, Inc. 1986-93
  5. ; All Rights Reserved
  6. ;
  7. ;
  8. noConstraint GEQU $0000 ; No constraint on movement.
  9. hAxisOnly GEQU $0001 ; Horizontal axis only.
  10. vAxisOnly GEQU $0002 ; Vertical axis only.
  11. simpRound GEQU $0000 ; Simple button flag
  12. upFlag GEQU $0001 ; Scroll bar flag. 
  13. boldButton GEQU $0001 ; Bold round cornered outlined button.
  14. simpBRound GEQU $0001 ; Simple button flag
  15. downFlag GEQU $0002 ; Scroll bar flag.
  16. simpSquare GEQU $0002 ; Simple button flag
  17. simpDropSquare GEQU $0003 ; Simple button flag
  18. leftFlag GEQU $0004 ; Scroll bar flag.
  19. rightFlag GEQU $0008 ; Scroll bar flag.
  20. dirScroll GEQU $0010 ; Scroll bar flag.
  21. horScroll GEQU $0010 ; Scroll bar flag.
  22. family GEQU $007F ; Mask for radio button family number
  23. ctlInVis GEQU $0080 ; invisible mask for any type of control 
  24. fCallWindowMgr GEQU $0001 ; Control Template flag value
  25. fSubstituteText GEQU $0002
  26. fSubTextType GEQU $0001
  27. inListBox GEQU $88
  28. fBlastText GEQU $0004 ; static text control
  29. fTextCanDim GEQU $0008 ; static text control
  30. fSquishText GEQU $0010 ; static text control
  31. fNoTrackIcon GEQU $0008 ; make Icon Button play dead
  32.  
  33. simpleProc GEQU $00000000
  34. checkProc GEQU $02000000
  35. radioProc GEQU $04000000
  36. scrollProc GEQU $06000000
  37. growProc GEQU $08000000
  38. drawCtl GEQU $0000 ; Draw control command.
  39. calcCRect GEQU $0001 ; Compute drag RECT command.
  40. testCtl GEQU $0002 ; Hit test command.
  41. initCtl GEQU $0003 ; Initialize command.
  42. dispCtl GEQU $0004 ; Dispose command.
  43. posCtl GEQU $0005 ; Move indicator command.
  44. thumbCtl GEQU $0006 ; Compute drag parameters command.
  45. dragCtl GEQU $0007 ; Drag command.
  46. autoTrack GEQU $0008 ; Action command.
  47. newValue GEQU $0009 ; Set new value command.
  48. setParams GEQU $000A ; Set new parameters command.
  49. moveCtl GEQU $000B ; Move command.
  50. recSize GEQU $000C ; Return record size command.
  51. ctlHandleEvent GEQU $000D ; Handle a keystroke or menu selection
  52. ctlChangeTarget GEQU $000E ; Issued when control's target status has changed
  53. ctlChangeBounds GEQU $000F ; Issued when control's boundary rectangle has changed
  54. ctlWindChangeSize GEQU $0010 ; Window has been grown or zoomed
  55. ctlHandleTab GEQU $0011 ; Control has been tabbed to
  56. ctlNotifyMultiPart GEQU $0012 ; A multipart control has been hidden, drawn or shown
  57. ctlWinStateChange GEQU $0013 ; Window state has changed
  58. noHilite GEQU $0000 ; Param to HiliteControl
  59. inactiveHilite GEQU $00FF ; Param to HiliteControl
  60. noPart GEQU $0000
  61. simpleButton GEQU $0002
  62. checkBox GEQU $0003
  63. radioButton GEQU $0004
  64. upArrow GEQU $0005
  65. downArrow GEQU $0006
  66. pageUp GEQU $0007
  67. pageDown GEQU $0008
  68. growBox GEQU $000A
  69. thumb GEQU $0081
  70.  
  71. ; moreFlags values
  72. fCtlTarget GEQU $8000 ; is current target of typing commands
  73. fCtlCanBeTarget GEQU $4000 ; can be made the target control
  74. fCtlWantEvent GEQU $2000 ; control can be called view SendEventToCtl
  75. fCtlWantsEvent GEQU $2000 ; control can be called view SendEventToCtl
  76. fCtlWantEvents GEQU $2000 ; control can be called view SendEventToCtl
  77. fCtlWantsEvents GEQU $2000 ; control can be called view SendEventToCtl
  78. fCtlProcRefNotPtr GEQU $1000 ; set = ID of defproc, clear = pointer to defproc
  79. fCtlTellAboutSize GEQU $0800 ; set if ctl needs notification when size of owning window changes
  80. fCtlIsMultiPart GEQU $0400 ; set if ctl needs notification to be hidden
  81. fMenuDefIsText GEQU $0004
  82. fDrawIconInResult GEQU $0020
  83. fDrawPopDownIcon GEQU $0080
  84.  
  85. colorDescriptor GEQU $000C ; indicates type of reference in colorRef
  86. styleDescriptor GEQU $0003 ; indicates type of reference in styleRef
  87. titleIsPtr GEQU $00
  88. titleIsHandle GEQU $01
  89. titleIsResource GEQU $02
  90. colorTableIsPtr GEQU $00
  91. colorTableIsHandle GEQU $04
  92. colorTableIsResource GEQU $08
  93. ctlHideCtl GEQU $12
  94. singlePtr GEQU $0000
  95. singleHandle GEQU $0001
  96. singleResource GEQU $0002
  97. ptrToPtr GEQU $0003
  98. ptrToHandle GEQU $0004
  99. ptrToResource GEQU $0005
  100. handleToPtr GEQU $0006
  101. handleToHandle GEQU $0007
  102. handleToResource GEQU $0008
  103. resourceToResource GEQU $0009
  104. simpleButtonControl GEQU $80000000
  105. checkControl GEQU $82000000
  106. radioControl GEQU $84000000
  107. scrollBarControl GEQU $86000000
  108. growControl GEQU $88000000
  109. statTextControl GEQU $81000000
  110. editLineControl GEQU $83000000
  111. editTextControl GEQU $85000000
  112. popUpControl GEQU $87000000
  113. listControl GEQU $89000000
  114. pictureControl GEQU $8D000000
  115. iconButtonControl GEQU $87FF0001
  116. thermometerControl GEQU $87FF0002
  117. rectangleControl GEQU $87FF0003
  118.  
  119. wmNotStartedUp GEQU $1001 ; Window manager was not initialized
  120. cmNotInitialized GEQU $1002 ; Control manager was not initialized
  121. noCtlInList GEQU $1003 ; Control not in window list
  122. noCtlError GEQU $1004 ; no controls in window
  123. noSuperCtlError GEQU $1005 ; no super controls in window
  124. noCtlTargetError GEQU $1006 ; no target super control
  125. notSuperCtlError GEQU $1007 ; action can only be done on super control
  126. canNotBeTargetError GEQU $1008 ; conrol cannot be made target
  127. noSuchIDError GEQU $1009 ; specified ID cannot be found
  128. tooFewParmsError GEQU $100A ; not enough params specified
  129. noCtlToBeTargetError GEQU $100B ; NextCtl call, no ctl could be target
  130. noFrontWindowError GEQU $100C ; there is no front window
  131. selectedIcon GEQU $0001
  132. openIcon GEQU $0002
  133. offline GEQU $0004
  134. fListString GEQU $0001
  135. fListSelect GEQU $0002
  136. fListScrollBar GEQU $0004
  137. fRightJustifyResult GEQU $0001
  138. fRightJustifyTitle GEQU $0002
  139. fInWindowOnly GEQU $0004
  140. fDontDrawResult GEQU $0008
  141. fDontDrawTitle GEQU $0010
  142. fDontHiliteTitle GEQU $0020
  143. fType2PopUp GEQU $0040
  144. ; offset constants for BarColors
  145. obarOutline GEQU 0
  146. obarNorArrow GEQU 2
  147. obarSelArrow GEQU 4
  148. obarArrowBack GEQU 6
  149. obarNorThumb GEQU 8
  150. obarSelThumb GEQU 10
  151. obarPageRgn GEQU 12
  152. obarInactive GEQU 14
  153. ; offset constants for BoxColors
  154. oboxReserved GEQU 0
  155. oboxNor GEQU 2
  156. oboxSel GEQU 4
  157. oboxTitle GEQU 6
  158. ; offset constants for BttnColors
  159. obttnOutline GEQU 0
  160. obttnNorBack GEQU 2
  161. obttnSelBack GEQU 4
  162. obttnNorText GEQU 6
  163. obttnSelText GEQU 8
  164. ; offset constants for CtlRec
  165. octlNext GEQU 0
  166. octlOwner GEQU 4
  167. octlRect GEQU 8
  168. octlFlag GEQU 16
  169. octlHilite GEQU 17
  170. octlValue GEQU 18
  171. octlProc GEQU 20
  172. octlAction GEQU 24
  173. octlData GEQU 28
  174. octlRefCon GEQU 32
  175. octlColor GEQU 36
  176. octlReserved GEQU 40
  177. octlID GEQU 56
  178. octlMoreFlags GEQU 60
  179. octlVersion GEQU 62
  180. ; offset constants for LimitBlk
  181. oboundRect GEQU 0
  182. oslopRect GEQU 8
  183. oaxisParam GEQU 16
  184. odragPatt GEQU 18
  185. ; offset constants for RadioColors
  186. oradReserved GEQU 0
  187. oradNor GEQU 2
  188. oradSel GEQU 4
  189. oradTitle GEQU 6
  190. ; offset constants for ControlTemplate
  191. opCount GEQU 0
  192. oID GEQU 2
  193. orect GEQU 6
  194. oprocRef GEQU 14
  195. oflag GEQU 18
  196. omoreFlags GEQU 20
  197. orefCon GEQU 22
  198.